class Employee:
    def __init__(self, name, days, info):
        self.name = name
        self.days = days
        self.info = info
    def update_days(self, days, month):
        if 0 <= month < 12:
            self.days[month] = days
            return '修改成功'
        return '修改失败'

    def __str__(self):
        return (f"姓名: {self.name}\n"
                f"每月考勤天数: {self.days}\n"
                f"额外信息: {self.info}")
class EmployeeManagementSystem:
    def __init__(self):
        self.employees = {}
    def add_employee(self, name, days, info):
        if name in self.employees:
            return f'员工{name}信息已存在'
        self.employees[name] = Employee(name, days, info)
        return f'添加{name}员工信息成功'
    def update_employee(self, name, days, month):
        if name not in self.employees:
            return f'员工{name}不存在'
        self.employees[name].update_days(days, month-1)
        return f'修改成功'
    def remove_employee(self, name):
        if name in self.employees:
            del self.employees[name]
            return f'删除{name}员工信息成功'
        return f'员工{name}不存在'
    def get_employee(self):
        if not self.employees:
            return f'当前列表为空'
        employees_name = list(self.employees.keys())
        return '员工姓名列表：'+', '.join(employees_name)
    def find_employee(self, name):
        if name not in self.employees:
            return f'员工{name}不存在'
        return self.employees[name]


# 示例用法
if __name__ == "__main__":
    # 创建员工管理系统
    ems = EmployeeManagementSystem()
    # 添加员工
    print(
        ems.add_employee(
        "张三",
        [22, 20, 23, 21, 22, 23, 22, 21, 22, 23, 22, 21],
        {"职位": "软件工程师", "联系方式": "13800138000", "部门": "技术部"}
    )
    )
    print(
        ems.add_employee(
        "李四",
        [23, 22, 21, 22, 23, 22, 21, 22, 23, 22, 21, 22],
        {"职位": "项目经理", "联系方式": "13900139000", "部门": "项目部"}
    )
    )
    # 获取员工列表
    print(ems.get_employee())

    # 查找员工信息
    print(ems.find_employee("张三"))

    # 更新员工考勤
    print(ems.update_employee("张三", 23, 1))

    # 再次查找员工信息，确认更新
    print(ems.find_employee("张三"))

    # 删除员工
    print(ems.remove_employee("李四"))

    # 再次获取员工列表，确认删除
    print(ems.get_employee())
